{extend name="./template/default/pc/pub/base.html" /}
{block name="seo"}
<title>{$site_name} - 最新热门免费漫画在线观看 - 好看的热门漫画 - 下拉式漫画阅读 - {$site_name}</title>
<meta property="og:title" content="{$site_name} - 最新热门免费漫画在线观看 - 好看的热门漫画 - 下拉式漫画阅读 - {$site_name}"/>

<meta property="og:description" content= "{$site_name}为大家带来最新最全免费漫画大全，这里有超多漫画资源，无论是国产动漫 韩国漫画，耽美漫画，还是恐怖漫画全都免费看，总有一个让你酣畅淋漓" />
<meta content="{$site_name}为大家带来最新最全免费漫画大全，这里有超多漫画资源，无论是国产动漫 韩国漫画，耽美漫画，还是恐怖漫画全都免费看，总有一个让你酣畅淋漓" name="description">
{/block}
{block name="content"}
<div class="container">
    <div class="shutter">
        <div class="shutter-img">
            {raccoon:banners name="banners" order="banner_order desc"}
            <a data-shutter-title="{$vo.title}"
               href="{if $end_point == 'id'}
              /{$book_ctrl}/{$vo.book_id}
              {else /}
              /{$book_ctrl}/{$vo.book ? $vo.book.unique_id : ''}
              {/if}">
                <img alt="{$vo.title}" src="{$vo.pic_name}">
            </a>
            {/raccoon:banners}
        </div>
        <ul class="shutter-btn">
            <li class="prev"></li>
            <li class="next"></li>
        </ul>
        <div class="shutter-desc">
            {raccoon:banners name="banners" order="banner_order desc"}
            <p>{$vo.title}</p>
            {/raccoon:banners}
        </div>
    </div>
</div>

<div class="full-class">
    <div class="container">
        <ul class="list">
            {raccoon:cates name="cates" order="id desc"}
            <li><a href="/{$booklist_act}?cate={$vo.tag_name}">{$vo.tag_name}</a></li>
            {/raccoon:cates}
        </ul>
        <a class="full-class-btn" href="/{$booklist_act}/">全部分类</a>
    </div>
</div>

<script>
    $(function () {
        $('.shutter').shutter({
            shutterW: 1000, // 容器宽度
            shutterH: 358, // 容器高度
            isAutoPlay: true, // 是否自动播放
            playInterval: 3000, // 自动播放时间
            curDisplay: 3, // 当前显示页
            fullPage: false // 是否全屏展示
        });
    });
</script>
<link href="/static/css/lunbo.css" rel="stylesheet" type="text/css">
<script src="/static/js/shutter.js"></script>
<script src="/static/js/velocity.js"></script>

<div class="index-title">
    <div class="container">
        <img class="index-title-logo" src="http://css99tel.cdndm5.com/v201910141105/blue/images/sd/index-title-7.png">
        <h2>上升最快</h2>
        <a class="index-title-more" href="/{$rank_ctrl}">更多</a>
    </div>
</div>

<div class="index-manga">
    <div class="container overflow-Show">
        <ul class="mh-list col7">
            {raccoon:books name="books" order="last_time desc" limit="7"}
            <li>
                <div class="mh-item">
                    <a href="/{$book_ctrl}/{$vo.param}">
                        <p class="mh-cover "
                           style="background-image: url({$vo.cover_url|get_img_url|default=''})"></p>
                    </a>

                    <div class="mh-item-detali">
                        <h2 class="title">
                            <a href="/{$book_ctrl}/{$vo.param}">
                                {$vo.book_name}
                            </a>
                        </h2>
                        <p class="zl"><span>评分:</span><span class="mh-star-line star-4"></span></p>
                        <p class="chapter">
                            {$vo.summary}
                        </p>
                    </div>
                </div>
            </li>
            {/raccoon:books}
        </ul>
    </div>
</div>

<div class="index-title">
    <div class="container">
        <img class="index-title-logo" src="/static/images/index-title-1.png">
        <h2>热门漫画</h2>
        <a class="index-title-more" href="/{$rank_ctrl}">更多</a>
    </div>
</div>
<div class="index-original">
    <div class="container">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide swiper-slide-duplicate">
                    <ul class="index-original-list">
                        {raccoon:books name="books" order="hits desc" limit="6"}
                        <li>
                            <div class="cover">
                                <a href="/{$book_ctrl}/{$vo.param}">
                                    <p class="mh-cover " style="background-image: url({$vo.cover_url|get_img_url|default=''})"></p>
                                </a>
                                </a>
                            </div>
                            <div class="info">
                                <p class="title">
                                    <a href="/{$book_ctrl}/{$vo.param}">
                                        {$vo.book_name}
                                    </a>

                                </p>
                                <div class="star"><span class="active"></span>
                                    <span class="active"></span>
                                    <span class="active"></span>
                                    <span class="active"></span>
                                    <span></span>
                                </div>
                                <p class="subtitle" style="color: #252525;">总点击
                                    <span>
                                         <a href="/{$book_ctrl}/{$vo.param}">
                                            {$vo.hits}
                                        </a>
                                    </span>
                                </p>
                                <p class="desc">{$vo.author_name}</p>
                                <div class="tag">
                                    {volist name="vo.taglist" id="tag"}
                                    <a href="/{$booklist_act}/{$tag}" target="_blank">{$tag}</a>
                                    {/volist}
                                </div>
                            </div>
                        </li>
                        {/raccoon:books}
                    </ul>
                </div>

            </div>
        </div>
    </div>
</div>

<section class="box container overflow-Show">
    <header class="box-header"><i class="icon icon-cat"></i>
        <h2>热门分类</h2>
        <ul class="cat-tabs js-tabs" style="margin-top: 1rem;">
            {raccoon:cates name="cates" limit="14"} <!-- value里的数字是后台分类ID，填哪几个数字就展示哪几个分类，必须和下面一致 -->
            <li><a class="{$i == 1 ? 'active' : ''}" data-val="{$i}" onclick="switchTag(this)">{$vo.tag_name}</a></li>
            {/raccoon:cates}
        </ul>
        <div class="pull-right">
            <a class="more" href="/{$booklist_act}?end=1">更多<i class="icon icon-arrow"></i></a>
        </div>
    </header>
    <div class="box-body">
        <section class="box-con-8n3">
            <div class="box-8n3-pane js_box_pane active">
                {raccoon:cates name="cates" id="cate"  key="k" limit="14"}
                <ul class="mh-list col7 switch-books" data-val="{$k}" style="display: {$k == 1? 'block' : 'none'};">
                    {raccoon:books name="books" where="tags like '%$cate->tag_name%'" order="last_time desc" limit="14"}
                    <li>
                        <div class="mh-item">
                            <a href="/{$book_ctrl}/{$vo.param}">
                                <p class="mh-cover " style="background-image: url({$vo.cover_url|get_img_url|default=''})"></p>
                            </a>


                            <div class="mh-item-detali">
                                <h2 class="title">
                                    <a href="/{$book_ctrl}/{$vo.param}">
                                        {$vo.book_name}
                                    </a>

                                </h2>
                                <p class="zl"><span>评分:</span><span class="mh-star-line star-4"></span></p>
                                <p class="chapter">
                                    {$vo.summary}
                                </p>
                            </div>
                        </div>
                    </li>
                    {/raccoon:books}
                </ul>
                {/raccoon:cates}
            </div>
        </section>
    </div>
    <footer></footer>
</section>
<script>
    function switchTag(obj) {
        var i = $(obj).attr('data-val');
        console.log(i);
        $('.switch-books').each(function (index, el) {
            if ($(el).attr('data-val') == i) {
                $(el).show();
            } else {
                $(el).hide();
            }
        })
        $(obj).addClass('active').parent().siblings().children('a').removeClass('active');
        console.log($(obj));
    }
</script>

<!-- 热门排行 -->
<div class="container">
    <div class="index-rank">
        <div class="index-rank-title">新书榜<a class="more" href="/{$rank_ctrl}">更多</a></div>
        <ul class="index-rank-list">
            {raccoon:books name="books" order="id desc" limit="4"}
            <li>
                <div class="cover">
                    <a href="/{$book_ctrl}/{$vo.param}">
                        <img alt="{$vo.book_name}" src="{$vo.cover_url|get_img_url|default=''}">
                    </a>

                </div>
                <div class="sign"><span class="top-{$k}">{$k}</span></div>
                <div class="info">
                    <p class="title">
                        <a href="/{$book_ctrl}/{$vo.param}">
                            {$vo.book_name}
                        </a>

                    </p>
                    <p class="subtitle">{$vo.summary|subtext=15}</p>
                </div>
            </li>
            {/raccoon:books}
        </ul>
    </div>
    <div class="index-rank">
        <div class="index-rank-title">点击榜<a class="more" href="/{$rank_ctrl}">更多</a></div>
        <ul class="index-rank-list">
            {raccoon:books name="books" order="hits desc" limit="4"}
            <li>
                <div class="cover">
                    <a href="/{$book_ctrl}/{$vo.param}">
                        <img alt="{$vo.book_name}" src="{$vo.cover_url|get_img_url|default=''}">
                    </a>

                </div>
                <div class="sign"><span class="top-{$k}">{$k}</span></div>
                <div class="info">
                    <p class="title">
                        <a href="/{$book_ctrl}/{$vo.param}">
                            {$vo.book_name}
                        </a>

                    </p>
                    <p class="subtitle">{$vo.summary|subtext=15}</p>
                </div>
            </li>
            {/raccoon:books}
        </ul>
    </div>
    <div class="index-rank">
        <div class="index-rank-title">推荐榜<a class="more" href="/{$rank_ctrl}">更多</a></div>
        <ul class="index-rank-list">
            {raccoon:books name="books" order="last_time desc" where="is_top=1" limit="4"}
            <li>
                <div class="cover">
                    <a href="/{$book_ctrl}/{$vo.param}">
                        <img alt="{$vo.book_name}" src="{$vo.cover_url|get_img_url|default=''}">
                    </a>

                </div>
                <div class="sign"><span class="top-{$k}">{$k}</span></div>
                <div class="info">
                    <p class="title">
                        <a href="/{$book_ctrl}/{$vo.param}">
                            {$vo.book_name}
                        </a>


                    </p>
                    <p class="subtitle">{$vo.summary|subtext=15}</p>
                </div>
            </li>
            {/raccoon:books}
        </ul>
    </div>
</div>


<section class="box container overflow-Show">
    <header class="box-header"><i class="icon icon-end"></i>
        <h2>完结优选</h2>
        <div class="pull-right">
            <a class="more" href="/{$booklist_act}?end=1">更多<i class="icon icon-arrow"></i></a></div>
    </header>
    <div class="box-body">
        <section class="box-con-8n3">
            <div class="box-8n3-pane js_box_pane active">
                <ul class="mh-list col7">
                    {raccoon:books name="books" order="id desc" where="end=1" limit="14"}
                    <li>
                        <div class="mh-item">
                            <a href="/{$book_ctrl}/{$vo.param}">
                                <p class="mh-cover " style="background-image: url({$vo.cover_url|get_img_url|default=''})"></p>
                            </a>


                            <div class="mh-item-detali">
                                <h2 class="title">
                                    <a href="/{$book_ctrl}/{$vo.param}">
                                        {$vo.book_name}
                                    </a>
                                </h2>
                                <p class="zl"><span>评分:</span><span class="mh-star-line star-4"></span></p>
                                <p class="chapter">
                                    {$vo.summary}
                                </p>
                            </div>
                        </div>
                    </li>
                    {/raccoon:books}
                </ul>
            </div>
        </section>
    </div>
    <footer></footer>
</section>

<div class="index-friendship">
    <div class="container">
        <p class="title">友情链接</p>
        <ul class="index-friendship-list">
            {volist name="links" id="vo"}
            <li><a href="{$vo.url}" target="_blank" title="{$vo.name}">{$vo.name}</a></li>
            {/volist}
        </ul>
    </div>
</div>
<ul class="index-right-float" style="display: block;">
    <li><a class="active"
           href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.box-header').eq(0).offset().top-80},500);">最近<br>更新</a>
    </li>
    <li><a class=""
           href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.index-title').eq(0).offset().top-80},500);">热门<br>漫画</a>
    </li>
    <li><a class=""
           href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.index-rank').eq(0).offset().top-80},500);">排行<br>榜单</a>
    </li>
    <li><a href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.box-header').eq(1).offset().top-80},500);">完结<br>佳作</a>
    </li>
    <li><a class="index-right-float-top" href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:0},500);"></a></li>
</ul>
<script type="text/javascript">
    $(function () {
        $(window).scroll(function () {
            var scrollTop = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + 5;
            if (scrollTop < $('.box-header').eq(0).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(0).addClass('active');
            } else if (scrollTop < $('.index-title').eq(0).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(1).addClass('active');
            } else if (scrollTop < $('.index-rank').eq(0).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(2).addClass('active');
            } else if (scrollTop < $('.box-header').eq(1).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(5).addClass('active');
            } else {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(6).addClass('active');
            }
        });
    });
</script>
{/block}